ContextHandler

interface ContextHandler

Handles a context input. This is the downstream-facing counterpart of ContextProvider; it passes unhandled context downstream for further handling. This handling doesn't have to use ContextAction to achieve its goals, but that may be a convenient method to do so (perhaps via requesting context action via children ContextProvider)

See the Wiki for a detailed overview of the ContextAction system in fzzy config.

Author

fzzyhmstrs

Since

0.6.0

Inheritors

Functions

Link copied to clipboard
abstract fun handleContext(contextType: ContextType, position: Position): Boolean

Handle a context event. This will be triggered by a parent, typically on key press or mouse click. A parent object can of course also be a context handler, handle context as applicable and then pass the event downstream for further handling.